package com.es.gateway.sdk.app.smsSendmsgall;

import com.es.gateway.sdk.util.GsonUtil;
import lombok.Data;

/**
 * 发送国际短信，响应请求
 */

@Data
public class SendmsgallResponse {
    /**
     * 错误码
     */
    private String code;
    /**
     * 结果描述
     */
    private String msg;
    /**
     * 此次短信发送的ID
     */
    private String externalld;
    /**
     * 此次请求ID
     */
    private String requestId;
    public String toJsonStr(){
        return GsonUtil.getAllJson().toJson(this);
    }
    public static SendmsgallResponse fromJsonStr(String JsonStr){
        return GsonUtil.getAllJson().fromJson(JsonStr, SendmsgallResponse.class);
    }
}
